package net.zjitc.mystring;

/**
 * Created by Administrator on 2017/4/13.
 */
public class MyString {
    public static void main(String[] args) {
  /*      String str="abc";
        String str1="abc";
        System.out.println(str==str1);
        String str3=new String("abc");
        String str4=new String("abc");
        System.out.println(str3==str4);*/

        /*new 出来的对象是不相等，因为内在地址不一样*/
        //Person类
        //判断两个Person是否相等？？
        //判断的条件：如果姓名，年龄相等 则认为两个人相同？？？
      /*  Person p1=new Person("ylg","20");
        Person p2=new Person("ylg","20");
        System.out.println(p1.toString());
        System.out.println(p1.equals(p2));
        System.out.println(p2.toString());
        System.out.println(p1==p2);*/

    IStringimpl is=new IStringimpl();

        System.out.println( is.length());
        System.out.println(is.concat("asdsadsa"));
        System.out.println(is.conpereTo("ASdsad"));
        System.out.println(is.indexOf("d",1));
        System.out.println(is.inser(3,"lzk"));
        System.out.println(is.delete(1,2));




    }
}
